﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TanHuan.Authorize.Biz;
using TanHuan.Authorize.Model;

namespace TanHuan.Authorize.Web.Controllers
{
    public class AuthFunctionController : Controller
    {
        AuthFunctionBiz afBiz = new AuthFunctionBiz();
        //
        // GET: /AuthFunction/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult GetAuthFunctionByParentUnid(int parentUnid)
        {
            List<AuthFunction> afList = afBiz.GetAuthFunctionByParentUnid(parentUnid);
            return Json(afList); 
        }
    }
}
